package com.blb.mapper;

import com.blb.entity.Categories;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HuaHao
 * @since 2019-11-20
 */
public interface CategoriesMapper extends BaseMapper<Categories> {
    /*获取所有分类信息*/
    List<Categories> getCategories();
    /*通过分类id查询分类名*/
    String categoriesName(String enterprise);
    /*通过分类名查询id*/
    String findCategoriesId(String name);
    /*添加菜单信息*/
    void addCategories(Categories categories);
    /*删除菜单*/
    void deleteCategories(String id);
    /*通过id查找pid*/
    List<String> findId(String id);
    /*修改菜单*/
    void updateCategories(Categories categories);

    List<Categories> getAllNode(@Param("nodeId") String nodeId,@Param("companyId") String companyId);
}
